<?php
/**
 * Html code of admin box which is visible when in admin view
 * int the left part of the screen.
 * 
 * @package templates
 */

$cm = CodeManager::getCodeManager();
$info = SiteContext::getSiteContext();
?>
<dl id="admin-header">
	<dt>
			<span class="uppercase bold"><?php echo $cm->get("30066"); ?></span>
			&nbsp;|&nbsp;
			<span class="bold">EAIIS</span> - Estate Agency internet information system
	</dt>
	<dd>
		<a class="light" href="?<?php echo Constants::REQ_ACTION."=".Constants::REQ_ACTION_REGISTATION."&amp;".Constants::REQ_TYPE."=".$info->getCurrentUser()->id; ?>"><?php echo $info->getCurrentUser()->login; ?></a>
		&nbsp;|&nbsp; 
		<a class="light" href="<?php echo Common::addParamsToUrl($info->getSiteInf()->urlRelativeNoParams(), 
				Constants::REQ_ACTION, Constants::REQ_ACTION_REDIRECT,
				Constants::REQ_TYPE, Constants::REQ_TYPE_LOGOUT)?>">logout</a>
	</dd>
</dl>
<div id="admin-wrapper">
	<div id="adminbox">
		<ul>
			<li><a href="?<?php echo Constants::REQ_ACTION."=".Constants::REQ_ACTION_OFFEREDIT; ?>"><?php echo $cm->get("30023"); ?></a></li>
			<li><a href="?<?php echo Constants::REQ_ACTION."=".Constants::REQ_ACTION_THUMBOFFER; ?>"><?php echo $cm->get("30024"); ?></a></li>
		</ul>
		<ul>
			<li><a href="?<?php echo Constants::REQ_ACTION."=".Constants::REQ_ACTION_REGISTATION; ?>"><?php echo $cm->get("30025"); ?></a></li>
			<li><a href="?<?php echo Constants::REQ_ACTION."=".Constants::REQ_ACTION_USERLIST; ?>"><?php  echo $cm->get("30026"); ?></a></li>
		</ul>
		<ul>
			<li><a href="?<?php echo Constants::REQ_ACTION."=".Constants::REQ_ACTION_SETTINGS; ?>"><?php echo $cm->get("30090"); ?></a></li>
		</ul>
	</div>